﻿@model BusinessBingo.Web.Models.ViewModels.LanguageBoxViewModel

@{
        Layout = "";
        var availableLanguageText = "";
        var availableLanguage = BusinessBingo.Model.LanguageKey.De;
        if(Model.AvailableLanguage == BusinessBingo.Model.LanguageKey.De)
        {
            availableLanguageText = "Deutsch";
            availableLanguage = BusinessBingo.Model.LanguageKey.De;
        } 
        else
        {
            availableLanguageText = "English";
            availableLanguage = BusinessBingo.Model.LanguageKey.En;
        }
}

@Html.ActionLink(availableLanguageText, "SwitchLanguage", "Meta", new { key = availableLanguage.ToString() }, null)